using System;
using System.Collections.Generic;

namespace Magiq.Sql {
  public class NotSupportedDependentTablesUpdateStrategy : IDependentTablesUpdateStrategy {
    #region IDependentTablesUpdateStrategy Members

    public int Execute<T>(MassUpdate<T> massUpdate, IEnumerable<TableUpdate<T>> updates) where T : class {
      throw new NotSupportedException(
        "Update to several tables is not supported by mssql. However, Magiq-to-sql will execute several updates whenever it's possible, but not it's not because the query you are trying to execute contains several updates to columns that are being used in the where clause. Try changing the query or specifing a DependentTablesUpdateStrategy.");
    }

    #endregion
  }
}